<template>
  <div class="">
    <ul v-show="flag == 2">
      <li
        v-for="(item, index) in list"
        v-show="item.status == 2"
        :key="item.id"
      >
        {{ item.title }}
        <button @click="fun1(index)">还原</button>
      </li>
      <button @click="all3">还原</button>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["list", "flag"],
  data() {
    return {};
  },
  mounted() {},
  methods: {
    fun1(i) {
      this.$emit("fun1", i);
    },
    all3() {
      this.$emit("all3");
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
